<%-- 
    Document   : accountingmanager
    Created on : Mar 15, 2012, 8:21:01 PM
    Author     : Alex
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <%
            response.setHeader("Pragma","no-cache");
            response.setHeader("Cache-Control","no-store");
            response.setHeader("Expires","0");
            response.setDateHeader("Expires",-1);
        %>
        
        <%
        if(session.getAttribute("manager")== null){
            response.sendRedirect("managerlogin5678.jsp");
            }

               else{
        %>
        
    </head>
    <body>
    
         <% out.print("Welcome " +session.getAttribute("usertype")+ "");%>
         <% out.print("Welcome " +session.getAttribute("manager")+ "");%>
         <% out.print("Welcome " +session.getAttribute("id")+ "");%>
        
        <h1>Accounting Manager</h1>
        
        <a href="SalesPerProduct.jsp">View Sales per Product</a>
        <a href="SalePerType.jsp">View Sales per Type</a>
        <a href="ManagerLogoutServlet"> Logout </a>
    </body>
    <%
    }
    %>
</html>
